﻿using System.Collections.Generic;

namespace RuoVea.ExViewEngine;

/// <summary>
/// 
/// </summary>
public interface IViewEngine
{
    /// <summary>
    /// 生成渲染模型
    /// </summary>
    /// <param name="content">模板内容</param>
    /// <param name="model">模型数据</param>
    /// <param name="usings">引用</param>
    /// <returns>模型字符串</returns>
    public string RunCompile(string content, object model, List<string>? usings =null);

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <param name="content"></param>
    /// <param name="model"></param>
    /// <param name="usings">引用</param>
    /// <returns></returns>
    string RunCompile<T>(string content, object model, List<string>? usings=null);
}